package edu.ccut.saturn.basecomponent.database.impl.sqlserver.builder.unused;

import edu.ccut.saturn.basecomponent.database.ISaturnSQL;
import edu.ccut.saturn.basecomponent.database.SaturnSQLBuilderFactory;
import edu.ccut.saturn.basecomponent.database.impl.AbstractUpdateSQLBuilder;
import edu.ccut.saturn.component.IDataItem;

public class SqlServerUpdateSQLBuilder extends AbstractUpdateSQLBuilder {

	@Override
	protected String getSetValueString(IDataItem iDataItem, Object value) 
	{
		StringBuffer setValueString = new StringBuffer();
		
		setValueString.append(iDataItem.getColumn());
		
		setValueString.append("='").append(value).append("'");
		
		return setValueString.toString();
	}

	@Override
	protected String getDatabaseType() {
		return SaturnSQLBuilderFactory.SQLSERVER;
	}

	@Override
	protected String getOperationType() {
		return ISaturnSQL.UPDATE_OPERATION;
	}

//	@Override
//	protected boolean isZero(Object value) {
//		return false;
//	}
}
